The phrase "close call" means a situation where something dangerous or bad almost happened, but was narrowly avoided.